<template>
	<view>
		<view class="header">
			<view class="header-b">
				<view><image src="../../static/stock/left.png" mode=""></image></view>
				<view class="">搜索</view>
			<image src="../../static/stock/1.png" mode="" style="width:44rpx;height: 44rpx;"></image>
			</view>
		</view>
		<view class="seach">
			<view class="seach-s">
				<image src="../../static/images/tb_search.png" mode=""></image>
				<input type="text" value="" placeholder="请输入关键词..." />
			</view>
		</view>
		<view class="classify">
			<view class="classify-l" @click="showdow">
				全部分类
				<image src="../../static/slice/1.png" mode=""></image>
			</view>
			<view class="classify-l">
				以上架
				<image src="../../static/slice/1.png" mode=""></image>
			</view>
			<view class="classify-l">
				智能排序
				<image src="../../static/slice/1.png" mode=""></image>
			</view>
		</view>
		<!-- 下拉 -->
		<view :class="{ show: show }" class="combobox">
			<view class="show-li" @click="showtrue">
				今日数据
				<image src="../../static/slice/gou.png" mode="" :class="{ showtrue: showtru }"></image>
			</view>
			<view class="show-li">昨日数据</view>
			<view class="show-li">七日数据</view>
			<view class="show-li">30日数据</view>
		</view>
		<view class="ima" v-if="shop"><image src="../../static/slice/86438f8f6d0029f503d57efb448590f.png" mode="aspectFit"></image></view>
		<view class="supershop">
			<image src="../../static/stock/zu2.png" mode=""></image>
			<view class="supershop-sp">
				<view class="supershop-spa">343455(商品名称)</view>
				<view class="supershop-spa">
					库存: 0 (
					<span class="red">欠: 0</span>
					)
				</view>
			</view>
			<view class="supershop-top">
				<view class="blue">
					以添加
				</view>

				<view class="red" style="font-size: 36rpx;">
				¥66.0
				</view>
			</view>
		</view>
		<!-- 展开按钮功能 -->
		<view class="unfolt" v-show="unfolt">
			<view class="unfolt-t">
				<view class="unfolt-one">规格</view>
				<view class="unfolt-two">欠货</view>
				<view class="unfolt-three">总库存</view>
			</view>
			<view class="unfolt-b">
				<view class="unfolt-one">尺寸</view>
				<view class="unfolt-two">1</view>
				<view class="unfolt-three">2</view>
			</view>
		</view>


		
	</view>
</template>

<script>
import uniIcons from '@/components/uni-icons/uni-icons.vue';
export default {
	components: {
		uniIcons
	},

	data() {
		return {
			show: true,
			showtru: true,
			shop: false,
			showZhan: '展开',
			showZhanimage: '../../static/images/tb_down.png',
			unfolt: false ,//展开按钮,
			showPut:false,
		};
	},
	methods: {
		showdow() {
			if (this.show) {
				this.show = false;
			} else {
				this.show = true;
			}
		},

		showtrue() {
			if (this.showtru) {
				this.showtru = false;
			} else {
				this.showtru = true;
			}
		},
		showZhankai() {
			if (!this.unfolt) {
				this.unfolt = true;
				this.showZhan = '收起';
				this.showZhanimage = '../../static/stock/001.png';
			} else {
				this.showZhan = '展开';
				this.unfolt = false;
				this.showZhanimage = '../../static/images/tb_down.png';
			}
		},
		shhowdian() {
			if(this.showPut){
				this.showPut=false
			}else{
				this.showPut=true
			}
			
		}
	}
};
</script>

<style lang="scss">
page {
	background-color: #f5f5f5;
}
.header {
	width: 750rpx;
	height: 88rpx;
	background: rgba(0, 130, 232, 1);
	.header-b {
		display: flex;
		height: 88rpx;
		font-size: 36rpx;
		font-family: PingFang SC;
		font-weight: 500;
		justify-content: space-between;
		color: #ffffff;
		padding: 24rpx 31rpx;
		image {
			width: 21rpx;
			height: 38rpx;
		}
		.more {
			font-size: 32rpx;
			font-family: PingFang SC;
			font-weight: 500;
		}
	}

	.header-s {
		width: 143rpx;
		height: 34rpx;
		font-size: 36rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(255, 255, 255, 1);
		line-height: 48rpx;
	}
}
.seach {
	width: 750rpx;
	height: 107rpx;
	background: rgba(0, 130, 232, 1);
	padding-left: 32rpx;
	display: flex;

	.seach-s {
		width: 700rpx;
		height: 60rpx;
		background: rgba(255, 255, 255, 1);
		border-radius: 99999rpx;
		padding-left: 27rpx;
		display: flex;

		box-sizing: border-box;
		input {
			padding-top: 10rpx;
			border-style: none;
		}
		image {
			width: 31rpx;
			height: 28rpx;
			margin-top: 15rpx;
			margin-right: 20rpx;
		}
	}
	.seach-e {
		image {
			width: 44rpx;
			height: 44rpx;
			margin-top: 12rpx;
			margin-left: 10rpx;
		}
	}
}
.classify {
	display: flex;
	justify-content: space-around;
	font-size: 32rpx;
	font-family: PingFang SC;
	font-weight: 500;
	color: rgba(51, 51, 51, 1);
	height: 90rpx;
	line-height: 90rpx;
	background-color: #ffffff;
	border-bottom: 21rpx solid #f5f5f5;
	image {
		width: 17rpx;
		height: 10rpx;
		margin-left: 11rpx;
	}
}
.ima {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 227rpx;
	image {
		width: 370upx;
		height: 390upx;
	}
}

.combobox {
	width: 100%;
	background-color: #ffffff;
	position: fixed;
	font-size: 30rpx;
	font-family: PingFang SC;
	font-weight: 500;
	color: #333333;
	line-height: 48rpx;
	padding-left: 30rpx;
	z-index: 2;
	.show-li {
		height: 90rpx;
		line-height: 90rpx;
		border-bottom: 2rpx solid #eeeeee;
		image {
			width: 38rpx;
			height: 32rpx;
			margin: 50rpx;
			float: right;
		}
	}
}
.show {
	display: none;
}
.show-li:hover {
	color: #249af6;
}
.showtrue {
	display: none;
}
.supershop {
	height: 210rpx;
	background-color: #ffffff;
	padding: 40rpx 31rpx;
	line-height: 210rpx;
	box-sizing: border-box;
	display: flex;
	position: relative;
	border-bottom: 2rpx solid #cccccc;

	image {
		width: 131rpx;
		height: 131rpx;
	}

	.supershop-sp {
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(51, 51, 51, 1);
		line-height: 60rpx;
	}
	.supershop-top {
		line-height: 60rpx;
		font-size: 28rpx;
		font-family: PingFang SC;
		font-weight: 500;
		position: absolute;
		right: 50rpx;
		.put {
			width: 345rpx;
			height: 161rpx;
			position: absolute;
			left: -345rpx;
			background-color: blue;
			z-index: 2;
			padding-top: 34rpx;
			box-sizing: border-box;
			background-color: #FFFFFF;
			.put-top {
				display: flex;
				justify-content: space-evenly;
				image {
					width: 44rpx;
					height: 44rpx;
				}
			}
		}
		image {
			width: 49rpx;
			height: 48rpx;
			position: relative;
			top: -10rpx;
		}
		.blue {
			image {
				margin-left: 10rpx;
				width: 17rpx;
				height: 10rpx;
			}
		}
	}
}
.unfolt {
	height: 200rpx;
	background-color: #f5f5f5;
	font-size: 32rpx;
	font-family: PingFang SC;
	font-weight: 500;
	color: rgba(51, 51, 51, 1);
	.unfolt-t {
		display: flex;
		justify-content: space-around;
		height: 100rpx;
		line-height: 100rpx;
		border-bottom: 2rpx solid #cccccc;
		.unfolt-one {
			position: relative;
			left: 64rpx;
		}
		.unfolt-two {
			position: relative;
			left: 64rpx;
		}
		.unfolt-three {
			position: relative;
			left: 50rpx;
		}
	}
	.unfolt-b {
		display: flex;
		justify-content: space-around;
		height: 100rpx;
		line-height: 100rpx;
		border-bottom: 2rpx solid #cccccc;
		.unfolt-one {
			position: relative;
			left: 48rpx;
		}
		.unfolt-two {
			position: relative;
			left: 30rpx;
		}
		.unfolt-three {
			position: relative;
			left: 30rpx;
		}
	}
}
.stock-b {
	width: 100%;
	position: fixed;
	bottom: 0;
}
.stock-btn {
	display: flex;
	.stock-div{
		width:439rpx;
		height: 110rpx;
		
		background-color: #FFFFFF;
		font-size:28rpx;
		font-family:PingFang SC;
		font-weight:500;
		color:rgba(51,51,51,1);
		.stock-d{
			margin-left: 32rpx;
			margin-top: 14rpx;
		}
	}
		
	button{
		flex: 1;
	}

}
.red {
	color: red;
	
}
.blue {
	color: #249af6;
}
</style>
